<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>05_模板解析_一般指令</title>
  </head>
  <body>
    <div id="app">
      <input type="text" v-model="msg"></input>
      <div>{{xxx}}</div>
    </div>
    <script src="./js/mvvm.js"></script>
    <script src="./js/compile.js"></script>
    <script src="./js/observer.js"></script>
    <script src="./js/watcher.js"></script>
    <script>
      
      new MVVM({
        el: "#app",
        data: {
          msg: "test", // 注意数据劫持时,每一条数据都对应的创建一个dep实例.只有一条数据,则有一个dep实例,id为0
          xxx: 1
        },
      });
    </script>
  </body>
</html>
